import React from 'react'
// 嵌套路由
// 1、引入路由
import { Route } from 'react-router-dom'

// 2、引入News组件
import News from '../News'
export default class Home extends React.Component{
    render(){
        return (
            <div>

                首页
                {/* 3、渲染子路由 */}
                <Route path="/home/news" component={News} />
            </div>
        )
    }
}